package exception;

/**
 * 自定义异常，通常用来在项目中描述那些不满足业务场景导致的错误
 *
 * 自定义异常定义时通常要满足以下要求:
 * 1:类名要做到见名知意
 * 2:继承自Exception(直接或间接)
 * 3:提供所有超类构造器
 *
 */
public class IllegalAgeException extends Exception{
    public IllegalAgeException() {
    }

    public IllegalAgeException(String message) {
        super(message);
    }

    public IllegalAgeException(String message, Throwable cause) {
        super(message, cause);
    }

    public IllegalAgeException(Throwable cause) {
        super(cause);
    }

    public IllegalAgeException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
